package com.example.exceldemo.utils;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.Arrays;
import java.util.List;

/**
 * @description Excel导出模板
 * @author cqw
 * @date 2019年5月15日下午2:26:34
 */
@Slf4j
@Data
public class ExcelTemplate {

	private String codedFileName;
	private String sheetName;
	private List<String> tableValArr;
	private List<String> tableKeyArr;
	private String configId;
	
	public ExcelTemplate(String configId) {
		super();
		this.configId = configId;
		log.info("导出Excel的模板id为"+configId);
		switch(configId){
			case "cir" :
				this.codedFileName = "示例报表";
				this.sheetName="示例报表sheet1";
				this.tableValArr = Arrays.asList("示例姓名","年龄");
				this.tableKeyArr = Arrays.asList("name","age");
				break;
		    default : 
		       //todo
		}
	}
	
	
	
	 
}
